package com.SmartCare.pojo.health;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 血压记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BloodPressure implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 老人编号
     */
    @TableField("elderly_id")
    private Long elderlyId;
    /**
     * 收缩压;正常值收缩压为90-140mmHg
     */
    private Float systolicPressure;

    /**
     * 舒张压;舒张压为60-90mmHg
     */
    private Float diastolicPressure;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;
}
